[INFO] fetching crate rust-memory-safety-examples 2.0.0...
[INFO] testing rust-memory-safety-examples-2.0.0 against master#1f7f8ea0721a3b1eb73e6c6d25cccb371434b320 for pr-154065-1
[INFO] extracting crate rust-memory-safety-examples 2.0.0 into /workspace/builds/worker-3-tc1/source
[INFO] started tweaking crates.io crate rust-memory-safety-examples 2.0.0
[INFO] removed 0 missing examples
[INFO] finished tweaking crates.io crate rust-memory-safety-examples 2.0.0
[INFO] tweaked toml for crates.io crate rust-memory-safety-examples 2.0.0 written to /workspace/builds/worker-3-tc1/source/Cargo.toml
[INFO] validating manifest of crates.io crate rust-memory-safety-examples 2.0.0 on toolchain 1f7f8ea0721a3b1eb73e6c6d25cccb371434b320
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f7f8ea0721a3b1eb73e6c6d25cccb371434b320" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate crates.io crate rust-memory-safety-examples 2.0.0 already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f7f8ea0721a3b1eb73e6c6d25cccb371434b320" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1f7f8ea0721a3b1eb73e6c6d25cccb371434b320" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] d52c2e677da8ced692bbf57a548ce4ccd598c070069fdbda88ffefa3a7f6b7da
[INFO] running `Command { std: "docker" "start" "-a" "d52c2e677da8ced692bbf57a548ce4ccd598c070069fdbda88ffefa3a7f6b7da", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "d52c2e677da8ced692bbf57a548ce4ccd598c070069fdbda88ffefa3a7f6b7da", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "d52c2e677da8ced692bbf57a548ce4ccd598c070069fdbda88ffefa3a7f6b7da", kill_on_drop: false }`
[INFO] [stdout] d52c2e677da8ced692bbf57a548ce4ccd598c070069fdbda88ffefa3a7f6b7da
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1f7f8ea0721a3b1eb73e6c6d25cccb371434b320" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] eae1049ec8204e835c956dae7a65cc803342b61112544b2704c592784d7266a1
[INFO] running `Command { std: "docker" "start" "-a" "eae1049ec8204e835c956dae7a65cc803342b61112544b2704c592784d7266a1", kill_on_drop: false }`
[INFO] [stderr]    Compiling rust-memory-safety-examples v2.0.0 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.65s
[INFO] running `Command { std: "docker" "inspect" "eae1049ec8204e835c956dae7a65cc803342b61112544b2704c592784d7266a1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "eae1049ec8204e835c956dae7a65cc803342b61112544b2704c592784d7266a1", kill_on_drop: false }`
[INFO] [stdout] eae1049ec8204e835c956dae7a65cc803342b61112544b2704c592784d7266a1
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1f7f8ea0721a3b1eb73e6c6d25cccb371434b320" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 94c2fc094128dbbcbc2ab69e1d02c8ab25e3d7efde33a0ec7ee9206fe32d1489
[INFO] running `Command { std: "docker" "start" "-a" "94c2fc094128dbbcbc2ab69e1d02c8ab25e3d7efde33a0ec7ee9206fe32d1489", kill_on_drop: false }`
[INFO] [stderr]    Compiling zerocopy v0.8.31
[INFO] [stderr]    Compiling ciborium-io v0.2.2
[INFO] [stderr]    Compiling clap_lex v0.7.6
[INFO] [stderr]    Compiling regex-syntax v0.8.8
[INFO] [stderr]    Compiling plotters-backend v0.3.7
[INFO] [stderr]    Compiling itertools v0.10.5
[INFO] [stderr]    Compiling cast v0.3.0
[INFO] [stderr]    Compiling oorandom v11.1.5
[INFO] [stderr]    Compiling anes v0.1.6
[INFO] [stderr]    Compiling syn v2.0.111
[INFO] [stderr]    Compiling serde_json v1.0.145
[INFO] [stderr]    Compiling is-terminal v0.4.17
[INFO] [stderr]    Compiling clap_builder v4.5.53
[INFO] [stderr]    Compiling plotters-svg v0.3.7
[INFO] [stderr]    Compiling plotters v0.3.7
[INFO] [stderr]    Compiling regex-automata v0.4.13
[INFO] [stderr]    Compiling criterion-plot v0.5.0
[INFO] [stderr]    Compiling clap v4.5.53
[INFO] [stderr]    Compiling zerocopy-derive v0.8.31
[INFO] [stderr]    Compiling serde_derive v1.0.228
[INFO] [stderr]    Compiling regex v1.12.2
[INFO] [stderr]    Compiling serde v1.0.228
[INFO] [stderr]    Compiling tinytemplate v1.2.1
[INFO] [stderr]    Compiling half v2.7.1
[INFO] [stderr]    Compiling ciborium-ll v0.2.2
[INFO] [stderr]    Compiling ciborium v0.2.2
[INFO] [stderr]    Compiling criterion v0.5.1
[INFO] [stderr]    Compiling rust-memory-safety-examples v2.0.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `std::collections::HashMap`
[INFO] [stdout]  --> examples/secure_patterns.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use std::collections::HashMap;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::fmt`
[INFO] [stdout]  --> examples/secure_patterns.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use std::fmt;
[INFO] [stdout]   |     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::marker::PhantomData`
[INFO] [stdout]  --> examples/secure_patterns.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use std::marker::PhantomData;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Arc`, `Mutex`, and `RwLock`
[INFO] [stdout]  --> examples/secure_patterns.rs:9:17
[INFO] [stdout]   |
[INFO] [stdout] 9 | use std::sync::{Arc, Mutex, RwLock};
[INFO] [stdout]   |                 ^^^  ^^^^^  ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `safe_heartbeat` is never used
[INFO] [stdout]   --> examples/cve_case_studies.rs:52:12
[INFO] [stdout]    |
[INFO] [stdout] 52 |     pub fn safe_heartbeat(payload: &[u8], claimed_length: usize) -> Vec<u8> {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `parse_arguments` is never used
[INFO] [stdout]    --> examples/cve_case_studies.rs:100:12
[INFO] [stdout]     |
[INFO] [stdout] 100 |     pub fn parse_arguments(args: &[&str]) -> Vec<String> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `validate_uid_strict` is never used
[INFO] [stdout]    --> examples/cve_case_studies.rs:160:12
[INFO] [stdout]     |
[INFO] [stdout] 160 |     pub fn validate_uid_strict(input: i64) -> Option<u32> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `process_eap_packet` is never used
[INFO] [stdout]    --> examples/cve_case_studies.rs:205:12
[INFO] [stdout]     |
[INFO] [stdout] 205 |     pub fn process_eap_packet(packet: &[u8], max_size: usize) -> Result<Vec<u8>, &'static str> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `safe_resolve_path` is never used
[INFO] [stdout]    --> examples/cve_case_studies.rs:255:12
[INFO] [stdout]     |
[INFO] [stdout] 255 |     pub fn safe_resolve_path(path: &str) -> Option<PathBuf> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0367]: `Drop` impl requires `T: Default` but the struct it is implemented for does not
[INFO] [stdout]    --> examples/secure_patterns.rs:275:13
[INFO] [stdout]     |
[INFO] [stdout] 275 |     impl<T: Default> Drop for Secret<T> {
[INFO] [stdout]     |             ^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] note: the implementor must specify the same requirement
[INFO] [stdout]    --> examples/secure_patterns.rs:241:5
[INFO] [stdout]     |
[INFO] [stdout] 241 |     pub struct Secret<T>(T);
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0367`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rust-memory-safety-examples` (example "secure_patterns") due to 1 previous error; 4 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] running `Command { std: "docker" "inspect" "94c2fc094128dbbcbc2ab69e1d02c8ab25e3d7efde33a0ec7ee9206fe32d1489", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "94c2fc094128dbbcbc2ab69e1d02c8ab25e3d7efde33a0ec7ee9206fe32d1489", kill_on_drop: false }`
[INFO] [stdout] 94c2fc094128dbbcbc2ab69e1d02c8ab25e3d7efde33a0ec7ee9206fe32d1489
